<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("#div1").fadeToggle();
    $("#div2").fadeIn("slow");
    $("#div3").fadeTo(2000,0.3);
    $("#test").fadeIn(5000);
  });
  $("#up").click(function(){
    $("#down").slideToggle("slow");
  });
});
</script>
<style>
#up,#down
{
padding:5px;
border:solid 1px #cccccc;
background-color:#3ccccc;
text-align:center;
}

</style>
</head>
<body>
<p>Demonstrate fadeIn() with different parameters.</p>
<button>Click to fade in boxes</button>
<br><br>
<div id="div1" style="width:80px;height:80px;display:none;background-color:red;"></div>
<div id="div2" style="width:80px;height:80px;display:none;background-color:green;"></div>
<div id="div3" style="width:80px;height:80px;display:none;background-color:blue;"></div>
<div id="test" style="width:80px;height:80px;display:none;background-color:skyblue;"></div>
<div id="up">up</div>
<div id="down" style="display:none;padding:50px;">down</div>
</body>
</html>
